home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 74
/
Volume 74 My Disc - Damaged.iso
/
Games
/
remote_control.swf
/
scripts
/
DefineButton2_143
/
BUTTONCONDACTION on(press).as
Wrap
Text File
|
2008-08-08
|
500b
|
27 lines
on(press){
_root.SFX.gotoAndPlay("Click");
var match = false;
var i = 0;
while(i < _root.cheatCodes.length)
{
var theCode = _root.cheatCodes[i];
if(_root.codeInput == theCode)
{
match = true;
break;
}
i++;
}
if(match == true)
{
_root.funcHITBOX("Valid_cheat_code_" + _root.codeInput);
gotoAndStop("Valid");
play();
}
else
{
gotoAndStop("Invalid");
play();
}
}